<?php
include('../function/user.function.php');
include('../config/connexion_db.config.php');

session_start();
$idFiche=$_SESSION['idFiche'];
$id = $_GET['id'];

if (isset($id)){
	$query='DELETE FROM `users` WHERE id='.$idFiche;
	$resultat=$connexion->query($query);
	header('Location: ../backend/utilisateurs.php');
}
else{
	$query='DELETE FROM `users` WHERE id='.$idFiche;
	$resultat=$connexion->query($query);
}
echo $query;
?>
